-
Notifications
You must be signed in to change notification settings - Fork 7
Add spline compatibility check helper #878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #878 +/- ##
=======================================
Coverage 94.00% 94.00%
=======================================
Files 55 55
Lines 2720 2720
Branches 852 852
=======================================
Hits 2557 2557
Misses 87 87
Partials 76 76 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Following changes are needed?
template <class Builder, class Evaluator>
struct is_spline_compatible<Builder, Evaluator,
std::enable_if_t<is_spline_builder_v<Builder> && is_spline_evaluator_v<Evaluator>
|| is_spline_builder_v<Evaluator> && is_spline_evaluator_v<Builder> >> Should be template <class Builder, class Evaluator>
struct is_spline_compatible<Builder, Evaluator,
std::enable_if_t<(is_spline_builder_v<Builder> && is_spline_evaluator_v<Evaluator>)
|| (is_spline_builder_v<Evaluator> && is_spline_evaluator_v<Builder>) >> |
You can keep
Yes please
Yes I guess the point of the linter is to clarify the intent. |
OK
What kind of docstrings do you prefer?
OK |
64b4312
to
b33f82c
Compare
@tpadioleau Can you format this |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! Just a few comments about the form. Can you also add your name to the authors ?
67967c7
to
497af68
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final change and we are good
This PR aims at a helper to check the consistency of spline builder and evaluator.
For some reason, I need double parentheses to use
ASSERT_FALSE
likeASSERT_FALSE((ddc::is_spline_compatible_v<Builder2D_1, Builder2D_1>));